﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using WinFormVigenere.Models;

namespace WinFormVigenere
{
    public partial class frmMain : Form
    {
        public frmMain()
        {
            InitializeComponent();
        }

        private void frmMain_Load(object sender, EventArgs e)
        {

        }

        private void label1_Click(object sender, EventArgs e)
        {

        }

        private void btnEncode_Click(object sender, EventArgs e)
        {
            MyEncoder myEncoder = new MyEncoder();
            myEncoder.Plain = txtPlain.Text;
            myEncoder.Key = txtKey.Text;
            myEncoder.encode();
            txtCipher.Text = myEncoder.Cipher;
        }
    }
}
